*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


#main{
    
    height: 800px;
    width:520px;
    background-color: blanchedalmond;
    border: 10px solid black;
    border-radius: 50px;
    display: flex;
    flex-direction: column;

    align-items: center;
    //around两头留空，between不留
    justify-content: space-around;

    //居中
    margin: 50px auto;

    //游戏区
    #stage{

            height:500px;
            width: 470px;
            border: 2px solid black;
            position: relative;

            #snake{
                
                &>div{
                    position: absolute;
                    //top:0-490
                    //left:0-460
                   
                    height: 12px;
                    width: 12px;
                    background-color: brown;
                    border:2px solid blanchedalmond; 
                }
            }
            #food{
                position: absolute;
                display: flex;
                flex-flow: row wrap;
                height: 10px;
                width: 10px;
                justify-content: space-between;
                align-content: space-between;
                //background-color: green;
                &>div{
                    
                    transform: rotate(45deg);
                    height:5px;
                    width: 5px;
                    background-color: green;
                }
            }
        
    }

    #pannel{
        font-size: 20px;
        font-family: 'Courier New', Courier, monospace;
        height:200px;
        width: 400px;
        display: flex;
        justify-content: space-between;
    }



    //积分面板
}